package invaliddotnetbusinessservicedependency;

import invaliddotnetbusinessservicedependency.InvalidDotNetBusinessServiceDependencyMatch;
import org.eclipse.viatra2.emf.incquery.runtime.api.IMatchProcessor;
import sysmodel.BusinessService;
import sysmodel.dotNetBusinessService;

/**
 * A match processor tailored for the InvalidDotNetBusinessServiceDependency pattern.
 * 
 * Clients should derive an (anonymous) class that implements the abstract process().
 * 
 */
public abstract class InvalidDotNetBusinessServiceDependencyProcessor implements IMatchProcessor<InvalidDotNetBusinessServiceDependencyMatch> {
  /**
   * Defines the action that is to be executed on each match.
   * @param pDotNetService the value of pattern parameter dotNetService in the currently processed match 
   * @param pOtherService the value of pattern parameter otherService in the currently processed match 
   * 
   */
  public abstract void process(final dotNetBusinessService dotNetService, final BusinessService otherService);
  
  @Override
  public void process(final InvalidDotNetBusinessServiceDependencyMatch match) {
    process(match.getDotNetService(), match.getOtherService());  				
    
  }
}
